<?php

/**
 * @Author: wuchenge
 * @Date: 2020-11-30 17:22:36
 * @email: ligui0506@sina.com
 * @descript: 消息生成器
 */

use App\Models\Message;
use Illuminate\Database\Seeder;

class MessagesTableSeeder extends Seeder
{
    public function run()
    {
        $data = [
            [
                'message'    => '成功',
                'language'   => 'zh',
                'error_code' => 0,
            ],
            [
                'message'    => '失败',
                'language'   => 'zh',
                'error_code' => 1,
            ],
        ];
        foreach ($data as $value) {
            Message::create($value);
        }
    }
}
